<!DOCTYPE HTML>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link rel="stylesheet" type="text/css" href="../css/stylesheet.css">
    <title>华工权小益提案收集平台</title>
    <script type="text/javascript">
        function checkSubmit(form) {
            if (form.name.value == '') {
                alert('姓名不能为空');
                form.name.focus();
                return false;
            }
            if (form.phone.value == '') {
                alert('电话号码不能为空');
                form.phone.focus();
                return false;
            }
            if (form.content.value == '') {
                alert('建议内容不能为空');
                form.content.focus();
                return false;
            }
            // document.myform.submit();
            return true;
        }
    </script>
</head>

<body>
    <div class="header">
        <a href="../index.html"><img src="../img/newhead.jpg"></a>
    </div>
    <div class="clear"></div>
    <div class="raise">
        <form action="help.php" method="post" onsubmit="return checkSubmit(this)">
            <input type="text" id="name" class="raiseinfo" placeholder="姓名" name="name">
            <input type="text" id="phone" class="raiseinfo" placeholder="电话" name="phone">
            <textarea type="text" id="content" class="raisedata" placeholder="帮助与建议(200字以内)" name="content" maxlength="200"></textarea>
            <!-- 需要把提交的数据写进数据库保存并利用 -->
            <input type="submit" value="提交" class="csubmit" style="color:#FFFFFF;">
        </form>
    </div>
    <div class="clear"></div>
    <div class="wholecori">
        <div class="copyright">
            <span>Copyright © 2017 华南理工大学学生会权益部</span>
        </div>
        <div class="copyright">
            <span>Power by 无线电爱好者协会信息部</span>
        </div>
    </div>
    <div class="clear"></div>
</body>

</html>